#ifndef SHELL_H_
#define SHELL_H_


#include "Mailer.h"
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <pthread.h>
#include <string>
#include <vector>

using namespace std;

class Shell{
public:
	Shell();
	virtual ~Shell();
	void mainRun();

private:
	Mailer*		_mailer;
	vector<int> intTokenizer(string s);
	pthread_t _ShellThread;
	void CreateNet(string filename);
	void start();
	void KillNode();
	void ReviveNode();
	void Killall();
	void PrintRT();
	void SendPacket();
	void Run();
	void Exit();
	void sendMsgToMailer(Message* msg);
};

#endif /*SHELL_H_*/
